import request from '@/utils/httpRequest'

export function fetchList(data) {
  return request({
    url: request.adornUrl('/order/order/page'),
    method: 'post',
    data
  })
}

export function addObj(data) {
  return request({
    url: request.adornUrl('/order/order'),
    method: 'post',
    data
  })
}

export function getObj(data) {
  return request({
    url: request.adornUrl('/order/order/detail'),
    method: 'post',
    data
  })
}

export function delObj(data) {
  return request({
    url: request.adornUrl('/order/order/delete'),
    method: 'post',
    data
  })
}

export function putObj(data) {
  return request({
    url: request.adornUrl('/order/order/update'),
    method: 'post',
    data
  })
}

export function changeObj(data) {
  return request({
    url: request.adornUrl('/order/order/change'),
    method: 'post',
    data
  })
}

export function appointObj(data) {
  return request({
    url: request.adornUrl('/order/order/appoint'),
    method: 'post',
    data
  })
}
//搜索订单
export function searchOrder(data) {
  return request({
    url: request.adornUrl('/order/order/searchOrder'),
    method: 'post',
    data
  })
}
//订单信息
export function orderInfoStatistics(data) {
  return request({
    url: request.adornUrl('/order/order/orderInfoStatistics'),
    method: 'post',
    data
  })
}
//订单状态
export function orderStutasStatistics(data) {
  return request({
    url: request.adornUrl('/order/order/orderStutasStatistics'),
    method: 'post',
    data
  })
}
//店铺信息
export function shopInfoStatistics(data) {
  return request({
    url: request.adornUrl('/order/order/shopInfoStatistics'),
    method: 'post',
    data
  })
}
//店铺排行
export function storeRankStatistics(data) {
  return request({
    url: request.adornUrl('/order/order/storeRankStatistics'),
    method: 'post',
    data
  })
}
//查看评论
export function commentdetail(data) {
  return request({
    url: request.adornUrl('/order/comment/detail'),
    method: 'post',
    data
  })
}
//隐藏评论
export function commenthide(data) {
  return request({
    url: request.adornUrl('/order/comment/hide'),
    method: 'post',
    data
  })
}
//回复评论
export function commentreply(data) {
  return request({
    url: request.adornUrl('/order/comment/reply'),
    method: 'post',
    data
  })
}
